package com.yao.shop.mapper;

import com.yao.shop.pojo.SysUserRole;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户角色Mapper
 * @Author: 杨德石
 * @Date: 2020/11/13 21:42
 * @Version 1.0
 */
@Component
public interface SysUserRoleMapper {

    /**
     * 添加
     * @param sysUserRole
     */
    void save(SysUserRole sysUserRole);

    /**
     * 根据用户Id删除
     * @param id
     */
    void deleteByUserId(Long id);

    /**
     * 根据用户ID查询
     * @param id
     * @return
     */
    List<SysUserRole> getByUserId(Long id);
}
